package guoanmaker.provider.business.model;

import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import guoanmaker.provider.helper.common.abstractobj.IdEntity;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name="t_provide_demanddocking")
public class ProvideDemandDocking extends IdEntity {
	private String enterpriseName;//企业名称
	private String position;//职位
	private String contactPerson;//联系人
	private String contactNumber;//联系电话
	private Date createTime;//创建时间
	private Date confirmTime;//确认完成时间 
	private String states;//状态   1待确认      2已确认
	private Date updateTime;//最后一次修改时间
	private String sortName;//商品最终分类名称
	private String projectIntroduction;//项目介绍
	private String orderNumber;//订单编号
	
	@ManyToOne(cascade=CascadeType.REFRESH,optional=false)
	@JoinColumn(name = "user_id")
	private PersonalUser user;//关联用户
	
	@ManyToOne(cascade=CascadeType.REFRESH,optional=false)
	@JoinColumn(name = "commodity_id")
	private ProvideCommodity commodity;//关联商品

}
